package com.mrlee.service;

import com.github.pagehelper.PageInfo;
import com.mrlee.bean.Account;
import com.mrlee.utils.AjaxResult;

import java.util.List;

/**
 * Created by dllo on 18/3/13.
 */
public interface AccountService {

    Account selectbyid(Integer aid);
    List<Account> selectallacc();
    AjaxResult selectAllAccount();
    AjaxResult changeStatus(Integer accountId,Integer status);
    AjaxResult addAccount(Account account);
    AjaxResult selectAccountById(Integer accountId);
    AjaxResult selectAccountByAccountName(String accountname);
    AjaxResult selectAccountByCardId(String cardId);
    AjaxResult updateAccount(Account account);
    AjaxResult search(String name,String cardid,String status,String loginname);
    AjaxResult dynamicSearch(String name,String cardid,String status,String loginname);
    PageInfo<Account> queryAccountByPage(Integer pageNo, Integer pageSize);
    PageInfo<Account> queryAccountByPageb(Integer pageNo, Integer pageSize);
    PageInfo<Account> queryAccountByPager(Integer pageNo, Integer pageSize);
}
